innerHtml

abstract fun innerHtml(): String

Returns a string with the HTML content of this element, or an empty string if the element does not have inner HTML.

Throws

when this instance is closed


abstract fun innerHtml(html: String): Boolean

Replaces the HTML content of this element with the given html.

Return

true when the HTML content of the element was successfully replaced

Parameters

html

a new HTML content of this element

Throws

when this instance is closed